import request from '@/utils/request'

// 查询实现规格查询列表
export function listSpecification(query) {
  return request({
    url: '/specification/specification/list',
    method: 'get',
    params: query
  })
}


export function getSpecificationList(id) {
  return request({
    url: '/specification/specification/getSpecification'+id,
    method: 'get',
  })
}



export function getSpeByBargain(id) {
  return request({
    url: '/specification/specification/getSpeByBargain'+id,
    method: 'get',
  })
}

// 查询实现规格查询详细
export function getSpecification(id) {
  return request({
    url: '/specification/specification/' + id,
    method: 'get'
  })
}

// 新增实现规格查询
export function addSpecification(data) {
  return request({
    url: '/specification/specification/add',
    method: 'post',
    data: data
  })
}

// 修改实现规格查询
export function updateSpecification(data) {
  return request({
    url: '/specification/specification',
    method: 'put',
    data: data
  })
}

// 删除实现规格查询
export function delSpecification(id) {
  return request({
    url: '/specification/specification/' + id,
    method: 'delete'
  })
}
